package com.linghang.wusthelper.entity.primary;

import com.linghang.wusthelper.entity.primary.BookCollectionInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author origin
 * 图书信息实体类
 */
public class BookInfo {

    private String bookNameAndAuth;

    private String publisher;

    private String ISBN;

    private String introduction;

    private String imageUrl;

    private List<BookCollectionInfo> collectionInfoList = new ArrayList<>();

    public String getBookNameAndAuth() {
        return bookNameAndAuth;
    }

    public void setBookNameAndAuth(String bookNameAndAuth) {
        this.bookNameAndAuth = bookNameAndAuth;
    }

    @Override
    public String toString() {
        return "BookInfo{" +
                "bookNameAndAuth='" + bookNameAndAuth + '\'' +
                ", publisher='" + publisher + '\'' +
                ", ISBN='" + ISBN + '\'' +
                ", introduction='" + introduction + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", collectionInfoList=" + collectionInfoList +
                '}';
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getISBN() {
        return ISBN;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public List<BookCollectionInfo> getCollectionInfoList() {
        return collectionInfoList;
    }

    public void setCollectionInfoList(List<BookCollectionInfo> collectionInfoList) {
        this.collectionInfoList = collectionInfoList;
    }

    public BookInfo(String bookNameAndAuth, String publisher, String ISBN, String introduction, String imageUrl, List<BookCollectionInfo> collectionInfoList) {
        this.bookNameAndAuth = bookNameAndAuth;
        this.publisher = publisher;
        this.ISBN = ISBN;
        this.introduction = introduction;
        this.imageUrl = imageUrl;
        this.collectionInfoList = collectionInfoList;
    }

    public BookInfo() {

    }
}
